//
//  AFModel.m
//  ahssc
//
//  Created by zuqiu on 17/3/27.
//  Copyright © 2017年 zuqiu. All rights reserved.
//

#import "AFModel.h"

@implementation AFModel
// 登录返回数据
+ (instancetype)afModeltWithDictionary:(NSDictionary *)dictionary {
    return [[self alloc]initWithDictionary:dictionary];
}

- (instancetype)initWithDictionary:(NSDictionary *)dictionary {
    self = [super init];
    if (self) {
        self.appid = [dictionary objectForKey:@"appid"];
        self.appname = [dictionary objectForKey:@"appname"];
        self.desc = [dictionary objectForKey:@"desc"];
        self.isshowwap = [dictionary objectForKey:@"isshowwap"];
        self.status = [[dictionary objectForKey:@"status"] intValue];
        self.wapurl = [dictionary objectForKey:@"wapurl"];
    }
    return self;
}

@end
